package cn.bs.seckill.service;

import cn.bs.seckill.pojo.Orders;
import cn.bs.seckill.pojo.User;
import cn.bs.seckill.vo.DetailVo;
import cn.bs.seckill.vo.GoodsVo;
import cn.bs.seckill.vo.OrderDetailVo;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 布索
 * @since 2022-03-01
 */
public interface OrdersService extends IService<Orders> {
    //秒杀的方法
    Orders secKill(User user, GoodsVo goods);

    //订单详情
    DetailVo detail(Long orderId);

    //获取秒杀地址
    String createPath(User user, Long goodsId);

    //校验秒杀地址
    Boolean checkPath(User user, Long goodsId,String path);

    //校验验证码
    Boolean checkCptcha(User user, Long goodsId, String captcha);
}
